import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    receiver: "",
    address: "",
  },
  getters: {},
  mutations: {
    // 修改收货人
    modifyReceiver(state, payload) {
      state.receiver = payload;
    },
    // 修改收获地址
    modifyAddress(state, payload) {
      state.address = payload;
    },
  },
  actions: {},
  modules: {},
});
